package top.truism.auth.web.pojo;

import java.text.DecimalFormat;

public class Book {

  private Long id;

  private String bookName;

  private Integer price;

  public Book() {
  }

  public Book(String bookName, Integer price) {
    this.bookName = bookName;
    this.price = price;
  }

  public Book(Long id, String bookName, Integer price) {
    this.id = id;
    this.bookName = bookName;
    this.price = price;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getBookName() {
    return bookName;
  }

  public void setBookName(String bookName) {
    this.bookName = bookName;
  }

  public Integer getPrice() {
    return price;
  }

  public void setPrice(Integer price) {
    this.price = price;
  }

  @Override
  public String toString() {
    return "Book{" +
        "id=" + id +
        ", bookName='" + bookName + '\'' +
        ", price=" + price +
        '}';
  }
}
